package com.hm.add1;

public class Cylinder implements C{
    private double radius;
    private double height;
    private String color;
    @Override
    public void volume() {
        System.out.println(area()*height);
    }

    @Override
    public double area() {
        return PI*radius*radius;
    }

    @Override
    public void setColor(String c) {
        this.color=c;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getColor() {
        return color;
    }

    public Cylinder(double radius, double height, String color) {
        this.radius = radius;
        this.height = height;
        this.color = color;
    }

    public Cylinder() {
    }
}
